import Layout from '@/layout/index.vue'
import { createNameComponent } from '../createNode'
const route = [
    {
        path: '/book',
        component: Layout,
        children: [{
            path: 'book',
            name: 'book',
            component: createNameComponent(() => import('@/views/main/book/index.vue')),
            meta: { title: '书籍管理', icon: 'book' }
        }]
    },

  {
    path: '/order',
    component: Layout,
    children: [
      {
        path: 'order',
        name: 'order',
        component: () => import('@/views/main/order/index.vue'),
        meta: { title: '订单管理', icon: 'order-full' }
      }
    ]
  },

  {
    path: '/user',
    component: Layout,
    children: [
      {
        path: 'index',
        name: 'user',
        component: () => import('@/views/main/user/index.vue'),
        meta: { title: '用户管理', icon: 'user-full' }
      }
    ]
  },
]

export default route